<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>很爱很爱你</title>
</head>
<body>
    <script>
        // let s = Symbol();
        // console.log(s);
        // let s2 = Symbol();
        // console.log(s2);
        // console.log(2 === s2);

        // let s1 = Symbol("key");

        // let s2 = Symbol("key");
        // console.log(s1,s2);


        // let cate = {
        //     person:Symbol(),
        //     animal:Symbol()
        // }
        // function getCate(type) {
        //     if(type === cate.person) {
        //         console.log("人类");
        //     } else {
        //         console.log("动物");
        //     }
        // }

        // let num = BigInt(2 ** 53);
        // console.log(num);

        // let num1 = 100n;
        // let num2 = 200n;
        // let res = num1+num2;
        // console.log(res);
        // let num = 2n ** 53n;
        // console.log(num);
        // console.log(num+1n);

        class Person {
            #weight = "100kg";
            constructor(name) {
                this.name = name;
                this.age = 20
            }
            getWeight () {
                console.log("体重是?",this.#weight);
            }
            #fn() {
                console.log("私有方法");
            }
        }
        let zhangsan = new Person("张三")
        zhangsan.getWeight();
    </script>
</body>
</html>